package com.cmc.cloud.cmclink.doc.vo.manifestvo.manifest;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 舱单主更新 Request VO
 *
 * @author chenzheng
 */
@Schema(description = "管理后台 - 子舱单主更新")
@Data
@ToString(callSuper = true)
public class ManifestSalveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9636")
    @NotNull(message = "{manifestsalve.id.notnull}")
    private Long id;

    @Schema(description = "舱单子编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{manifestsalve.manifestnonum.notblank}")
    @Length(max = 3, message = "{manifestsalve.manifestnonum.length}")
    private String manifestNoNum;

}
